﻿using System.Collections.Generic;

namespace CoreShop.Model
{
    /// <summary>
    /// 券信息
    /// </summary>
    public class CouponInfo
    {
        public string remark { get; set; }
        /// <summary>
        /// 券id
        /// </summary>
        public string couponInfoId { get; set; }
        /// <summary>
        /// 商户号
        /// </summary>
        public string tenantId { get; set; }
        /// <summary>
        /// 组织
        /// </summary>
        public string organizationId { get; set; }
        /// <summary>
        /// 券码
        /// </summary>
        public string couponNo { get; set; }
        /// <summary>
        /// 券名称
        /// </summary>
        public string couponName { get; set; }
        /// <summary>
        /// 券面值
        /// </summary>
        public string amount { get; set; }
        /// <summary>
        /// 实收金额
        /// </summary>
        public string amountFact { get; set; }
        /// <summary>
        /// 核销金额
        /// </summary>
        public string verifyAmount { get; set; }
        /// <summary>
        /// 最大抵扣金额
        /// </summary>
        public string maxDiscountAmount { get; set; }
        /// <summary>
        /// 有效期开始
        /// </summary>
        public string couponBeginDate { get; set; }
        /// <summary>
        /// 有效期结束
        /// </summary>
        public string couponEndDate { get; set; }
        /// <summary>
        /// 核销时间
        /// </summary>
        public string verifyDate { get; set; }
        public string backDate { get; set; }
        /// <summary>
        /// 批次id
        /// </summary>
        public string couponBatchId { get; set; }
        /// <summary>
        /// 制券id
        /// </summary>
        public string couponBatchCreateId { get; set; }
        /// <summary>
        /// 券类型
        /// 1:代金券
        /// 2:满减券
        /// 3:折扣券
        /// 4:运费券
        /// 5:商品券
        /// 6:随机券
        /// </summary>
        public string couponTypeId { get; set; }
        /// <summary>
        /// 券分类
        /// </summary>
        public string couponSortId { get; set; }
        /// <summary>
        /// 适用渠道 1 全部 2 小程序 3 POS系统 4 商城
        /// </summary>
        public string couponChannelId { get; set; }
        /// <summary>
        /// 券来源渠道
        /// </summary>
        public string couponSourceChannelId { get; set; }
        /// <summary>
        /// 商品适用方式 1 全部商品 2 指定商品 3 排除商品
        /// </summary>
        public string itemWayType { get; set; }
        /// <summary>
        /// 适用门店方式 1 全部门店 2 指定门店 3 排除门店
        /// </summary>
        public string branchWayType { get; set; }
        public string exclusion { get; set; }
        public string gift { get; set; }
        public string pwdType { get; set; }
        public string password { get; set; }
        /// <summary>
        /// 门店信息
        /// </summary>
        public List<string> couponBatchBranchList { get; set; }
        /// <summary>
        /// 商品信息
        /// </summary>
        public List<couponBatchSkuList> couponBatchSkuList { get; set; }
    }

    public class couponBatchSkuList 
    {
        public string createTime { get; set; }
        public string updateTime { get; set; }
        public string remark { get; set; }
        public string couponBatchSkuId { get; set; }
        public string couponBatchId { get; set; }
        public string useType { get; set; }
        public string itemId { get; set; }
        public string itemCode { get; set; }
        public string itemName { get; set; }
    }
}
